package org.viettan.android.main.resources;

import org.viettan.android.main.VietTanApplication;

import android.content.Context;
import android.content.res.Resources;

/**
 * The {@code ResourcesUtility} provides helper methods to access resources.
 */
public class ResourcesManager {

    /**
     * Returns the localized string in the current-selected article language given the string's
     * resource ID.
     *
     * @param resourceId
     *            resource ID of the string
     * @return localized string
     */
    public String getString(int resourceId) {
	Context context = VietTanApplication.getAppContext();
	Resources resources = context.getResources();
	return resources.getString(resourceId);
    }
}
